package com.gouqi.mall.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "新闻消息")
public class News {
    @ApiModelProperty(value = "新闻id")
    private Integer id;
    @ApiModelProperty(value = "新闻标题",required = true)
    private String headline;
    @ApiModelProperty(value = "新闻内容")
    private String news_content;
    @ApiModelProperty(value = "新闻发布时间")
    private String release_time;
    @ApiModelProperty(value = "新闻发布人")
    private User publisher;
    //@ApiModelProperty(value = "新闻发布人Id,32位md5码")
    //private String publisherId;
    //@ApiModelProperty(value = "新闻发布人姓名")
    //private String publisher;
    @ApiModelProperty(value = "新闻链接地址")
    private String news_link;
    @ApiModelProperty(value = "是否被举报")
    private Boolean isReport;
    @ApiModelProperty(value = "举报原因")
    private String report_reason;
    @ApiModelProperty(value = "新闻发布人")
    private User complainant;
    //@ApiModelProperty(value = "举报人/投诉人,32位md5码")
    //private String complainantId;
    //@ApiModelProperty(value = "举报人/投诉人姓名")
    //private String complainantName;
    @ApiModelProperty(value = "新闻是否过期")
    private Boolean expire;
    @ApiModelProperty(value = "新闻说明图片")
    private String news_pictures;
    @ApiModelProperty(value = "新闻封面图片")
    private String news_cover;

    public News(){}


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHeadline() {
        return headline;
    }

    public void setHeadline(String headline) {
        this.headline = headline;
    }

    public String getNews_content() {
        return news_content;
    }

    public void setNews_content(String news_content) {
        this.news_content = news_content;
    }

    public String getRelease_time() {
        return release_time;
    }

    public void setRelease_time(String release_time) {
        this.release_time = release_time;
    }

    public User getPublisher() {
        return publisher;
    }

    public void setPublisher(User publisher) {
        this.publisher = publisher;
    }

    public String getNews_link() {
        return news_link;
    }

    public void setNews_link(String news_link) {
        this.news_link = news_link;
    }

    public Boolean getReport() {
        return isReport;
    }

    public void setReport(Boolean report) {
        isReport = report;
    }

    public String getReport_reason() {
        return report_reason;
    }

    public void setReport_reason(String report_reason) {
        this.report_reason = report_reason;
    }

    public User getComplainant() {
        return complainant;
    }

    public void setComplainant(User complainant) {
        this.complainant = complainant;
    }

    public Boolean getExpire() {
        return expire;
    }

    public void setExpire(Boolean expire) {
        this.expire = expire;
    }

    public String getNews_pictures() {
        return news_pictures;
    }

    public void setNews_pictures(String news_pictures) {
        this.news_pictures = news_pictures;
    }

    public String getNews_cover() {
        return news_cover;
    }

    public void setNews_cover(String news_cover) {
        this.news_cover = news_cover;
    }

    public News(Integer id, String headline, String news_content, String release_time, User publisher, String news_link, Boolean isReport, String report_reason, User complainant, Boolean expire, String news_pictures, String news_cover) {
        this.id = id;
        this.headline = headline;
        this.news_content = news_content;
        this.release_time = release_time;
        this.publisher = publisher;
        this.news_link = news_link;
        this.isReport = isReport;
        this.report_reason = report_reason;
        this.complainant = complainant;
        this.expire = expire;
        this.news_pictures = news_pictures;
        this.news_cover = news_cover;
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", headline='" + headline + '\'' +
                ", news_content='" + news_content + '\'' +
                ", release_time='" + release_time + '\'' +
                ", publisher=" + publisher +
                ", news_link='" + news_link + '\'' +
                ", isReport=" + isReport +
                ", report_reason='" + report_reason + '\'' +
                ", complainant=" + complainant +
                ", expire=" + expire +
                ", news_pictures='" + news_pictures + '\'' +
                ", news_cover='" + news_cover + '\'' +
                '}';
    }
}
